export function Line_option (data) {
  const symbolSize = 0;
  return {
    title: {
      text: "能耗kwh",
      textStyle: {
        color: '#B5C4D0',
      },
    },
    tooltip: {
      trigger: 'axis',
    },
    grid: {
      left: "3%",
      right: "4%",
      bottom: "12%",
      containLabel: true,
    },
    xAxis: {
      data: data.map(item => item[0]),
      type: "category",
      axisLine: {
        lineStyle: {
          color: '#3B93B080',
        },
      },
      splitLine: {
        show: true,
        lineStyle: {
          color: '#DDF6FE33',
        },
      },
      axisTick: {
        show: false,
      },
      splitArea: {
        show: false,
      },
      axisLabel: {
        interval: 0,
        color: '#B5C4D0',
        fontSize: 14,
      },
    },
    yAxis: {
      min: 0,
      type: "value",
      axisLine: {
        lineStyle: {
          color: '#3B93B080',
        },
      },
      splitLine: {
        show: true,
        lineStyle: {
          color: '#DDF6FE33',
        },
      },
      axisTick: {
        show: false,
      },
      splitArea: {
        show: false,
      },
      axisLabel: {
        interval: 0,
        color: '#B5C4D0',
        fontSize: 14,
      },
    },
    series: [
      {
        type: "line",
        smooth: true,
        symbolSize: symbolSize,
        name: "能耗",
        data: data,
      },
    ],
  };
}
